|
|
(6 intermediate revisions by one other user not shown) |
Line 42: |
Line 42: |
| |- | | |- |
| | Filters for Press Table and Events || adjustments for how the filter function works || https://moha.wiki/MediaWiki:Gadget-datatables.js | | | Filters for Press Table and Events || adjustments for how the filter function works || https://moha.wiki/MediaWiki:Gadget-datatables.js |
| | |- |
| | | Sidebar Edit || where to edit the sidebar || https://moha.wiki/MediaWiki:Sidebar |
| |} | | |} |
|
| |
|
| ===Backup Site=== | | ===Backup Site=== |
| | ====Method 1==== |
| # login to the server via SSH | | # login to the server via SSH |
| # make sure you are in your home directory, for this, run: cd ~ | | # make sure you are in your home directory, for this, run: cd ~ |
Line 52: |
Line 55: |
|
| |
|
| The database will be stored in the same directory with the date in its name. To delete an old database copy, navigate to it in MC and press F8. | | The database will be stored in the same directory with the date in its name. To delete an old database copy, navigate to it in MC and press F8. |
| | |
| | ====Method 2==== |
| | # login to the server via ssh |
| | # make sure you're in and run: ls |
| | # run : ls -alh |
| | # to backup, run: ./backup-database.sh |
| | |
| | Now the site is backed up. |
|
| |
|
| ==Code Blocks== | | ==Code Blocks== |
Line 115: |
Line 126: |
| New semantic queries can be created using the [https://moha.wiki/Special:Ask Semantic Search] page. For a full description of the semantic search page you can visit [https://www.semantic-mediawiki.org/wiki/Help:Semantic_search here]. | | New semantic queries can be created using the [https://moha.wiki/Special:Ask Semantic Search] page. For a full description of the semantic search page you can visit [https://www.semantic-mediawiki.org/wiki/Help:Semantic_search here]. |
|
| |
|
| On this page the left column you "ask" the mediawiki to provide you information that matches your criteria. That criteria is any element that is a property within mediawiki and could be categories, event names, start dates etc.... | | On this page the left column you "ask" the mediawiki to provide you information that matches your criteria. |
|
| |
|
| So for example you could "ask", provide everything that is within the category of events. The code to do this is <nowiki> [[Category:Events]] </nowiki>. '''To note, a bug within mediawiki semantic search has led us to include <nowiki>[[Modification date::+]]</nowiki> within all semantic queries.''' So the code to semantically query all events in this case would be <nowiki>[[Category:Events]] [[Modification date::+]]</nowiki>. On the right you want to provide all the properties you'd like the query to return. For a list of all properties you can visit [https://moha.wiki/Special:Properties Properties]. For an individual page or events properties you can visit any given page and in the bottom left, click tools and then browse properties. This will show you all properties on that page as well as the values within those properties. In our example we're going to return the following properties | | That criteria is any element that is a property within mediawiki and could be categories, event names, start dates etc.... |
| | |
| | So for example you could "ask": provide everything that is within the category of events. The code to do this is <nowiki> [[Category:Events]] </nowiki>. |
| | |
| | '''To note, a bug within mediawiki semantic search has led us to include <nowiki>[[Modification date::+]]</nowiki> within all semantic queries.''' |
| | |
| | So the code to semantically query all events in this case would be <nowiki>[[Category:Events]] [[Modification date::+]]</nowiki>. On the right you want to provide all the properties you'd like the query to return. For a list of all properties you can visit [https://moha.wiki/Special:Properties Properties]. For an individual page or events properties you can visit any given page and in the bottom left, click tools and then browse properties. This will show you all properties on that page as well as the values within those properties. In our example we're going to return the following properties |
| <pre> | | <pre> |
| ?Event description | | ?Event description |
Line 129: |
Line 146: |
|
| |
|
| To use a template that has been created to hold this data, you use the option "plainlist" and the template name that's been created. More info on other options can be found at the initial link. An example of the final piece of code in this instance might look like | | To use a template that has been created to hold this data, you use the option "plainlist" and the template name that's been created. More info on other options can be found at the initial link. An example of the final piece of code in this instance might look like |
|
| |
|
| |
|
| <pre> | | <pre> |
Line 156: |
Line 172: |
| </pre> | | </pre> |
|
| |
|
| | '''Code Overview''' |
| <pre> | | <pre> |
| <nowiki> | | <nowiki> |
| {{#ask: [[Category:CATEGORY NAME]] [[Modification date::+]] [[PROPERTY::PROPERTY NAME]] | | {{#ask: [[Category:CATEGORY NAME]] [[Modification date::+]] [[PROPERTY::PROPERTY NAME]] |
| ''PROPERTIES TO BE QUERIED OR DISPLAYED MUST GO BELOW''
| | //PROPERTIES TO BE QUERIED OR DISPLAYED MUST GO BELOW// |
| |?Event description | | |?Event description |
| |?Date Start | | |?Date Start |
Line 165: |
Line 182: |
| |?Event image | | |?Event image |
| |?Event name | | |?Event name |
| |format=plainlist | | //ALL SPECIFIC OPTIONS// |
| |limit=50 | | |format=plainlist - MUST BE USED FOR USING A TEMPLATE |
| | |limit=50 - LIMIT OF HOW MANY RESULTS TO DISPLAY |
| |offset=0 | | |offset=0 |
| |link=all | | |link=all |
| |sort=Date Start | | |sort=Date Start - SORT FIELD |
| |order=asc | | |order=asc - SORT ORDER |
| |headers=show | | |headers=show - IF YOU WANT TO DISPLAY HEADERS OR NOT |
| |searchlabel=... further results | | |searchlabel=... further results |
| |propsep=, | | |propsep=, - NEEDS TO BE A COMA |
| |valuesep=, | | |valuesep=, - NEEDS TO BE A COMA |
| |template=Single_Event_Display | | |template=Single_Event_Display - THIS IS HOW THIS INFORMATION WILL BE DISPLAYED, OR WHERE THE QUERY WILL BE PASSED THROUGH, DESIGN MUST BE EDITED ON THE TEMPLATE FOR CHANGES, BUT THOSE CHANGES WILL BE THROUGH THE ENTIRE WIKI |
| |named args=1 | | |named args=1 - MUST BE CHECKED |
| |class=sortable wikitable smwtable | | |class=sortable wikitable smwtable |
| }} | | }} |
Line 281: |
Line 299: |
| To assign Articles to other categories, add those categories as subcategories of the [[Category:Article]]. Put this code on the needed category page (see https://moha.wiki/Special:Categories). Multiple levels are supported: | | To assign Articles to other categories, add those categories as subcategories of the [[Category:Article]]. Put this code on the needed category page (see https://moha.wiki/Special:Categories). Multiple levels are supported: |
|
| |
|
| | <pre> |
| <nowiki>Category:Article | | <nowiki>Category:Article |
|
| |
|
Line 288: |
Line 307: |
|
| |
|
| ---|---|---|- ... and so on</nowiki> | | ---|---|---|- ... and so on</nowiki> |
| | </pre> |
|
| |
|
| <noinclude>[[category:guide]]</noinclude> | | <noinclude>[[category:guide]]</noinclude> |