Template:Quest: Difference between revisions

From Regnum Online Wiki
Jump to navigation Jump to search
ROWiki>Onteron
mNo edit summary
m 25 revisions imported
 
(22 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<!-- data: format; realm; level; npc -->
<!-- data: format; realm; level; npc -->
<pre><nowiki>&lt;onlyinclude&gt;{{quest |data={{{data|}}} |name={{subst:PAGENAME}}
{{new quest box}}
    |realm=
 
    |level=
 
    |givenby=
Alternatively copy and past the following code into a new article:
    |xp=
 
    |gold=
<pre>
    |items=
&lt;onlyinclude&gt;{{quest | {{{1|}}} | name = {{subst:PAGENAME}}
    |intro=
  | realm   =  
    |task1=
  | level   =  <!-- Put "?" if no level is currently unknown -->
    |text1=
  | class  = <!-- If the quest is only for a certain class add it here -->
    |task2=
  | givenby =
    |text2=
  | xp     = <!-- Put "0" if no xp given -->
    |task3=
  | gold   = <!-- Put "0" if no gold given -->
    |text3=
  | items   = <!-- Put "None" if none given -->
    |task4=
  | wmcoin  = <!-- Leave empty if no Master coins -->
    |text4=
 
}}&lt;/onlyinclude&gt;
&lt;noinclude&gt;
</nowiki></pre>
  | 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/{{#if:{{{data|}}}| {{#explode:{{{data}}}|;|0}} | full }}
  | {{Quest/{{#switch:{{localurl: {{PAGENAME}} }}
       |data= {{{data}}} |name= {{{name}}}
              | {{localurl: {{{realm}}} Quests }}
       |realm= {{{realm}}} |level= {{{level}}} |givenby= {{{givenby}}}
              | {{localurl: Quests Table }} = tablerow
       |gold=  {{{gold}}}  |xp=    {{{xp}}}    |items=   {{{items|}}}
              | {{localurl: {{{givenby}}} }}
       |intro= {{{intro|}}}
              | {{localurl: {{{realm}}} quests list }}
       |task1= {{{task1|}}} |text1= {{{text1|}}}
              | {{localurl: Quests List }} = listitem
       |task2= {{{task2|}}} |text2= {{{text2|}}}
              | {{localurl: {{{name}}} }} = full
       |task3= {{{task3|}}} |text3= {{{text3|}}}
              | #default = il
       |task4= {{{task4|}}} |text4= {{{text4|}}}
            }}
       |task5= {{{task5|}}} |text5= {{{text5|}}}
       | name = {{{name}}}   | {{{1|}}}
       |task6= {{{task6|}}} |text6= {{{text6|}}}
       | realm = {{{realm}}} | level = {{{level}}} | class = {{{class|}}}
       |task7= {{{task7|}}} |text7= {{{text7|}}}
      | givenby = {{{givenby|}}}  | position = {{{position|}}}
       |task8= {{{task8|}}} |text8= {{{text8|}}}
       | gold =  {{{gold|}}}  | xp =    {{{xp}}}     
       |task9= {{{task9|}}} |text9= {{{text9|}}}
      | items = {{{items|}}} | wmcoin = {{{wmcoin|}}}
  }} }}</includeonly></onlyinclude>
       | 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>

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>