Template:Quest: Difference between revisions

From Regnum Online Wiki
Jump to navigation Jump to search
ROWiki>Onteron
New page: <!-- data: format; realm; level; npc --> <pre><nowiki>{{quest |data={{{data}}} |name={{subst:PAGENAME}} |realm= |level= |givenby= |xp= |gold= |items= |i...
 
m 25 revisions imported
 
(26 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<!-- data: format; realm; level; npc -->
<!-- data: format; realm; level; npc -->
<pre><nowiki>{{quest
{{new quest box}}
    |data={{{data}}}
 
    |name={{subst:PAGENAME}}
 
    |realm=
Alternatively copy and past the following code into a new article:
    |level=
 
    |givenby=
<pre>
    |xp=
&lt;onlyinclude&gt;{{quest | {{{1|}}} | name = {{subst:PAGENAME}}
    |gold=
  | realm   =  
    |items=
  | level   = <!-- Put "?" if no level is currently unknown -->
    |intro=
  | class  =  <!-- If the quest is only for a certain class add it here -->
    |task1=
  | givenby =
    |text1=
  | xp     = <!-- Put "0" if no xp given -->
}}
  | gold   = <!-- Put "0" if no gold given -->
</nowiki></pre>
  | items   = <!-- Put "None" if none given -->
  | wmcoin  = <!-- Leave empty if no Master coins -->
 
&lt;noinclude&gt;
  | story = <!-- A summary of the quest story -->
 
&lt;/noinclude&gt;
  | tasks = <!-- The tasks of the quest -->
 
&lt;noinclude&gt;
  | notes =  <!-- General notes on the quest -->
 
&lt;/noinclude&gt;}}&lt;/onlyinclude&gt;
</pre>


<!-- Only display template if fields match any query data sent -->
<!-- Only display template if fields match any query data sent -->
<onlyinclude><includeonly>{{#ifexpr:  
<onlyinclude><includeonly>{{#ifexpr:  
     {{qd | {{{data|}}} | 1 | {{{realm}}}  }} and  
     {{qd | {{{1|}}} | 1 | {{{realm}}}  }} and  
     {{qd | {{{data|}}} | 2 | {{{level}}}  }} and  
     {{qd | {{{1|}}} | 2 | {{{level}}}  }} and  
     {{qd | {{{data|}}} | 3 | {{{givenby}}} }}
     {{qd | {{{1|}}} | 3 | {{{givenby}}} }}
 


| {{Quest/{{#explode:{{{data}}}|;|0}} |data= {{{data}}} |name= {{{name}}}
      |realm= {{{realm}}} |level= {{{level}}} |givenby= {{{givenby}}}
      |gold=  {{{gold}}}  |xp=    {{{xp}}}    |items=  {{{items|}}}
      |intro= {{{intro|}}}
      |task1= {{{task1|}}} |text1= {{{text1|}}}
      |task2= {{{task2|}}} |text2= {{{text2|}}}
      |task3= {{{task3|}}} |text3= {{{text3|}}}
      |task4= {{{task4|}}} |text4= {{{text4|}}}
      |task5= {{{task5|}}} |text5= {{{text5|}}}
      |task6= {{{task6|}}} |text6= {{{text6|}}}
      |task7= {{{task7|}}} |text7= {{{text7|}}}
      |task8= {{{task8|}}} |text8= {{{text8|}}}
      |task9= {{{task9|}}} |text9= {{{text9|}}}
  }}


  | {{Quest/{{#switch:{{localurl: {{PAGENAME}} }}
              | {{localurl: {{{realm}}} Quests }}
              | {{localurl: Quests Table }} = tablerow
              | {{localurl: {{{givenby}}} }}
              | {{localurl: {{{realm}}} quests list }}
              | {{localurl: Quests List }} = listitem
              | {{localurl: {{{name}}} }} = full
              | #default = il
            }}
      | name = {{{name}}}    | {{{1|}}}
      | realm = {{{realm}}}  | level = {{{level}}} | class = {{{class|}}}
      | givenby = {{{givenby|}}}  | position = {{{position|}}}
      | gold =  {{{gold|}}}  | xp =    {{{xp}}}   
      | items = {{{items|}}} | wmcoin = {{{wmcoin|}}}
      | intro = {{{intro|}}} | notes = {{{notes|}}}
      | story = {{{story|}}} | tasks = {{{tasks|}}}
      | task1 = {{{task1|}}} | text1 = {{{text1|}}}
      | task2 = {{{task2|}}} | text2 = {{{text2|}}}
      | task3 = {{{task3|}}} | text3 = {{{text3|}}}
      | task4 = {{{task4|}}} | text4 = {{{text4|}}}
      | task5 = {{{task5|}}} | text5 = {{{text5|}}}
      | task6 = {{{task6|}}} | text6 = {{{text6|}}}
      | task7 = {{{task7|}}} | text7 = {{{text7|}}}
      | task8 = {{{task8|}}} | text8 = {{{text8|}}}
      | task9 = {{{task9|}}} | text9 = {{{text9|}}}
      | task10 = {{{task10|}}} | text10 = {{{text10|}}}
      | task11 = {{{task11|}}} | text11 = {{{text11|}}}
      | task12 = {{{task12|}}} | text12 = {{{text12|}}}
      | task13 = {{{task13|}}} | text13 = {{{text13|}}}
      | task14 = {{{task14|}}} | text14 = {{{text14|}}}
      | task15 = {{{task15|}}} | text15 = {{{text15|}}}
      | task16 = {{{task16|}}} | text16 = {{{text16|}}}
      | task17 = {{{task17|}}} | text17 = {{{text17|}}}
      | task18 = {{{task18|}}} | text18 = {{{text18|}}}
      | task19 = {{{task19|}}} | text19 = {{{text19|}}}
      | task20 = {{{task20|}}} | text20 = {{{text20|}}}
    }}
}}</includeonly></onlyinclude>
}}</includeonly></onlyinclude>

Latest revision as of 18:28, 6 November 2020


To add a quest article, just type the name of the quest in the box (use Title Case) and press create:

<createbox>
   preload=Project:Preload Templates/Quest/Content
 editintro=Project:Preload Templates/Quest/Intro
 buttonlabel=Create
 width=50
 break=no

</createbox>


Alternatively copy and past the following code into a new article:

<onlyinclude>{{quest | {{{1|}}} | name = {{subst:PAGENAME}}
  | realm   = 
  | level   =  <!-- Put "?" if no level is currently unknown -->
  | class   =  <!-- If the quest is only for a certain class add it here -->
  | givenby =  
  | xp      =  <!-- Put "0" if no xp given -->
  | gold    =  <!-- Put "0" if no gold given -->
  | items   =  <!-- Put "None" if none given -->
  | wmcoin  =  <!-- Leave empty if no Master coins -->

<noinclude>
  | story =  <!-- A summary of the quest story -->

</noinclude>
  | tasks =  <!-- The tasks of the quest -->

<noinclude>
  | notes =  <!-- General notes on the quest -->

</noinclude>}}</onlyinclude>