|
|
(4 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. |
| | |
| | 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 | | 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 282: |
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 289: |
Line 307: |
|
| |
|
| ---|---|---|- ... and so on</nowiki> | | ---|---|---|- ... and so on</nowiki> |
| | </pre> |
|
| |
|
| <noinclude>[[category:guide]]</noinclude> | | <noinclude>[[category:guide]]</noinclude> |