Instructions: Difference between revisions
From Off the Road Database
					No edit summary  | 
				No edit summary  | 
				||
| Line 40: | Line 40: | ||
* Use <code><nowiki><pagenr>(1)</pagenr></nowiki></code> elements to display page number information inside paragraphs.  | * Use <code><nowiki><pagenr>(1)</pagenr></nowiki></code> elements to display page number information inside paragraphs.  | ||
* Use <code><nowiki><poem>...</poem></nowiki></code> inside paragraphs to keep formatting exactly like in the editor. See [https://www.mediawiki.org/wiki/Extension:Poem/de Extension:Poem] for further formatting instructions.  | * Use <code><nowiki><poem>...</poem></nowiki></code> inside paragraphs to keep formatting exactly like in the editor. See [https://www.mediawiki.org/wiki/Extension:Poem/de Extension:Poem] for further formatting instructions.  | ||
* Use wikitext like <code><nowiki> == CHAPTER I == </nowiki></code> between paragraphs for headlines and other wiki markup for styling  | * Use wikitext like <code><nowiki> == CHAPTER I == </nowiki></code> between paragraphs for headlines and other wiki markup for styling.    | ||
= Authors =  | = Authors =  | ||
Latest revision as of 08:36, 10 June 2025
Before editing pages make sure you have the necessary Editor rights.
Texts
How to create new Category:Texts pages and annotate paragraphs.
- Enter the name of the page. The name is relevant for searching and should be the same as the title of the text.
 
Metadata
Insert a <meta> section.
Note: Attributes like genre are case sensitive!
<meta author="Dreiser, Theodore;Sandburg, Carl;Sinclair, Lewis" additional_information="Info text here.." genre="Novel,Thriller" journal="Journal1, Journal2" publisher="Publisher1, Publisher2" year_of_publication="2000,2001" page_range="1-10" />
- The 
authorattribute can have multiple values separated by a ";" semicolon. - The attributes 
genre, journal, publisher, year_of_publicationcan have multiple values separated by a "," comma. - Attributes can be omitted completely and are shown as "-" in the Bibliographic Information section on the text page.
 
Annotations
Its best to look at already annotated pages to get a feeling for how the markup works.
- Put all annotations inside 
<annotations>...</annotations>elements. - Define paragraphs via 
<paragraph keywords="keyword1,keyword2">paragraph text</paragraph> - The 
keywordsattribute can have multiple values separated by a "," comma. - There can be multiple paragraphs.
 - Use 
<pagenr>(1)</pagenr>elements to display page number information inside paragraphs. - Use 
<poem>...</poem>inside paragraphs to keep formatting exactly like in the editor. See Extension:Poem for further formatting instructions. - Use wikitext like 
== CHAPTER I ==between paragraphs for headlines and other wiki markup for styling. 
Authors
How to create new Category:Authors pages.
- Enter the name of the author. This should always follow the same naming convention throughout the wiki e.g. Frost, Robert.
 
- Insert an author infobox and related texts section with the following wikitext:
 
{{Infobox Author
| gender            = Male
| ethnicity         = African, American
| nationality       = African
| life span         = quite long
}}
- The 
ethnicityparameter can have multiple values separated by a "," comma. - Attributes can be omitted completely and are shown as "-" in the Bibliographic Information section on the author page.
 nationalityandlife spanare not used for searching and can therefore contain any text.
Examples
Click on Actions->Edit on an existing page like Off_the_Highway or Frost, Robert to see examples of working edits.
Special Pages
- Use Mediawiki:Sidebar to edit the navigation bar items.
 - Edit MediaWiki:Common.css to change the styling of the wiki. Scroll down to 
/* OFFTHEROAD CUSTOM CSS SECTION */to find custom styling for the offroad wiki. - Edit MediaWiki:Text Template to change the preloaded text for new Category:Texts pages.
 - Edit MediaWiki:Author Template to change the preloaded text for new Category:Authors pages.
 
Extensions
See Special:Version for details.
Composer
- SemanticBundle
 
Extension Directory
- OffTheRoad
 - WikiSearch
 - WikiSearchFront
 - YouTube
 - WSSemanticParsedText
 - ArrayFunctions (at least version 1.42 for the 
caseinsensitiveoption) 
SemanticBundle
- SemanticMediaWiki
 - PageForms
 
Other
These come bundled with the above setup.
- PdfHandler
 - ParserFunctions
 - Poem
 - InputBox
 - TemplateData