Difference between revisions of "Portal:Skeleton"

From eRepublik Official Wiki
Jump to: navigation, search
 
(small corrections)
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
#* This is going to look like a ton of red links until you complete the steps below.  
 
#* This is going to look like a ton of red links until you complete the steps below.  
 
#* '''DO NOT PRESS ON THE RED LINKS TO EDIT THEM!'''
 
#* '''DO NOT PRESS ON THE RED LINKS TO EDIT THEM!'''
# <span style="color:#0000FF">Create a subpage at ''(Your Portal)/box'' and save <code><nowiki>{{Portal:Box/Core|title={{{1}}}|editpage={{{2}}}|text={{{3}}}}}</nowiki></code> on the page.</span>
+
# <span style="color:#0000FF">Create a subpage at ''(Your Portal)/box'' and save <code><nowiki>{{Portal Box/Core|title={{{1}}}|editpage={{{2}}}|text={{{3}}}}}</nowiki></code> on the page.</span>
 
#* This can be customized with <code>|border=</code>, <code>|border-width=</code>, <code>|border-radius=</code>, <code>|background=</code>, <code>|opacity=</code>, and <code>|titleforeground=</code>.
 
#* This can be customized with <code>|border=</code>, <code>|border-width=</code>, <code>|border-radius=</code>, <code>|background=</code>, <code>|opacity=</code>, and <code>|titleforeground=</code>.
 
# <span style="color:#0000FF">Alter the contents of your portal page to fit your needs by adding and removing the boxes.</span>
 
# <span style="color:#0000FF">Alter the contents of your portal page to fit your needs by adding and removing the boxes.</span>
 
# <span style="color:#0000FF">Create pages for the contents of the boxes at ''(Your Portal)/(Box name)''.</span>
 
# <span style="color:#0000FF">Create pages for the contents of the boxes at ''(Your Portal)/(Box name)''.</span>
 
#* For the randomized boxes, save different contents at ''(Your Portal)/(Box name)/(#)'', where (#) would be 1 through 5.
 
#* For the randomized boxes, save different contents at ''(Your Portal)/(Box name)/(#)'', where (#) would be 1 through 5.
 
===Optional feature===
 
# <span style="color:#0000FF">Create a subpage at ''(Your Portal)/boxblank'' and save <code><nowiki>{{Portal:BoxBlank/Core|title={{{1}}}|editpage={{{2}}}|text={{{3}}}}}</nowiki></code> on the page.</span>
 
#* This can be customized with <code>|border=</code>, <code>|border-width=</code>, <code>|border-radius=</code>, <code>|background=</code>, <code>|opacity=</code>, and <code>|titleforeground=</code>.
 
#* Instead of ''<nowiki>{{FULLPAGENAME}}/box</nowiki>'', you use ''<nowiki>{{FULLPAGENAME}}/boxblank</nowiki>''. Enjoy!
 
  
 
==Templates used==
 
==Templates used==
*{{[[Portal:Box/Core]]}}
+
*{{Tl|Portal Box/Core}}
*{{[[Portal:BoxBlank/Core]]}}
+
*{{Tl|Portal Box Blank}}
  
*{{[[Template:Random portal component]]}}
+
*{{Tl|Random portal component}}
*{{[[Template:Random portal component with nominate]]}}
+
*{{Tl|Random portal component with nominate}}
  
*{{[[Template:Mod]]}}
+
*{{Tl|Mod}}
*{{[[Template:Rand]]}}
+
*{{Tl|Rand}}
*{{[[Template:Purge]]}}
+
*{{Tl|Purge}}
  
 
==Examples==
 
==Examples==
 
* [[:Category:Portals]]
 
* [[:Category:Portals]]
 
+
[[Category:Portal Templates]]</noinclude><includeonly>
==THE CODE==
+
__NOTOC__
</noinclude>__NOTOC__
+
  
 
<div style="clear:both; width:100%">
 
<div style="clear:both; width:100%">
  
{{{{FULLPAGENAME}}/box|<big>{{PAGENAME}}</big>|{{FULLPAGENAME}}/Intro|3={{{{FULLPAGENAME}}/Intro}}}}
+
{{Portal Box|<big>{{PAGENAME}}</big>|{{FULLPAGENAME}}/Intro|3={{{{FULLPAGENAME}}/Intro}}}}
  
 
<div style="text-align:center; margin:0.25em auto 0.75em">{{Purge|'''Show new selections'''}}</div>
 
<div style="text-align:center; margin:0.25em auto 0.75em">{{Purge|'''Show new selections'''}}</div>
Line 45: Line 39:
 
{{Random portal component with nominate|max=5|header=Selected biography| subpage=Selected biography}}
 
{{Random portal component with nominate|max=5|header=Selected biography| subpage=Selected biography}}
  
{{{{FULLPAGENAME}}/box|In the news|{{FULLPAGENAME}}/News|3={{{{FULLPAGENAME}}/News}}}}
+
{{Portal Box|In the news|{{FULLPAGENAME}}/News|3={{{{FULLPAGENAME}}/News}}}}
  
 
</div>
 
</div>
Line 55: Line 49:
 
{{Random portal component with nominate|max=5|header=Did you know?| subpage=Did you know}}
 
{{Random portal component with nominate|max=5|header=Did you know?| subpage=Did you know}}
  
{{{{FULLPAGENAME}}/box|Categories|{{FULLPAGENAME}}/Categories|3={{{{FULLPAGENAME}}/Categories}}}}
+
{{Portal Box|Categories|{{FULLPAGENAME}}/Categories|3={{{{FULLPAGENAME}}/Categories}}}}
  
 
</div>
 
</div>
Line 61: Line 55:
 
<div style="clear:both; width:100%">
 
<div style="clear:both; width:100%">
  
{{{{FULLPAGENAME}}/box|Topics|{{FULLPAGENAME}}/Topics|3={{{{FULLPAGENAME}}/Topics}}}}
+
{{Portal Box|Topics|{{FULLPAGENAME}}/Topics|3={{{{FULLPAGENAME}}/Topics}}}}
  
{{{{FULLPAGENAME}}/box|Related portals|{{FULLPAGENAME}}/Related portals|3={{{{FULLPAGENAME}}/Related portals}}}}
+
{{Portal Box|Related portals|{{FULLPAGENAME}}/Related portals|3={{{{FULLPAGENAME}}/Related portals}}}}
  
 
</div>
 
</div>
  
 
<div style="float:left; width:55%">
 
<div style="float:left; width:55%">
{{{{FULLPAGENAME}}/box|WikiProjects|{{FULLPAGENAME}}/Projects|3={{{{FULLPAGENAME}}/Projects}}}}
+
{{Portal Box|WikiProjects|{{FULLPAGENAME}}/Projects|3={{{{FULLPAGENAME}}/Projects}}}}
  
 
</div>
 
</div>
  
 
<div style="float:right; width:44%">
 
<div style="float:right; width:44%">
{{{{FULLPAGENAME}}/box|Things to do|{{FULLPAGENAME}}/Opentask|3={{{{FULLPAGENAME}}/Opentask}}}}
+
{{Portal Box|Things to do|{{FULLPAGENAME}}/Opentask|3={{{{FULLPAGENAME}}/Opentask}}}}
  
 
</div>
 
</div>
Line 79: Line 73:
 
<div style="clear:both; width:100%">
 
<div style="clear:both; width:100%">
  
{{{{FULLPAGENAME}}/box|eRepublik|{{FULLPAGENAME}}/eRepublik|3={{{{FULLPAGENAME}}/eRepublik}}}}
+
{{Portal Box|eRepublik|{{FULLPAGENAME}}/eRepublik|3={{{{FULLPAGENAME}}/eRepublik}}}}
  
 
</div>
 
</div>
__NOTOC__ __NOEDITSECTION__
+
__NOEDITSECTION__
 
+
<includeonly>
+
[[Category:{{PAGENAME}}|*{{FULLPAGENAME}}]]
+
<!-- Recategorize Category:Portals under construction to an appropriate subcategory of Category:Portals
+
    once the portal is ready for viewing by non-editors. -->
+
 
[[Category:Portals under construction|{{PAGENAME}}]]
 
[[Category:Portals under construction|{{PAGENAME}}]]
 +
 +
<!-- Recategorize Category:Portals under construction to Category:Portals once the portal is ready for viewing by non-editors. -->
 
</includeonly>
 
</includeonly>

Latest revision as of 14:42, 16 October 2020

Usage

  1. Go to the page where you want to create the portal, then save {{SUBST:Portal:Skeleton}} on the page.
    • This is going to look like a ton of red links until you complete the steps below.
    • DO NOT PRESS ON THE RED LINKS TO EDIT THEM!
  2. Create a subpage at (Your Portal)/box and save {{Portal Box/Core|title={{{1}}}|editpage={{{2}}}|text={{{3}}}}} on the page.
    • This can be customized with |border=, |border-width=, |border-radius=, |background=, |opacity=, and |titleforeground=.
  3. Alter the contents of your portal page to fit your needs by adding and removing the boxes.
  4. Create pages for the contents of the boxes at (Your Portal)/(Box name).
    • For the randomized boxes, save different contents at (Your Portal)/(Box name)/(#), where (#) would be 1 through 5.

Templates used

Examples