Difference between revisions of "User:Admin/sandbox"
From Gunsopedia
(2 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | {| | + | == Days page template == |
− | | | + | Its simple, really. Just like this - |
− | | | + | /* make the table to scroll days */ |
− | + | {| width="100%" | |
− | + | | align="left" | [[{{{1}}}|<< Previous day]] | |
− | |[[ | + | | align="right" | [[{{{2}}}|Next day >>]] |
− | | | + | |} |
+ | /* call the other pages */ | ||
+ | == [[{{PAGENAME}}/article|Featured Article]] == | ||
+ | {{:{{PAGENAME}}/article}} | ||
+ | |||
+ | == [[{{PAGENAME}}/events|On this day]] == | ||
+ | {{:{{PAGENAME}}/events}} | ||
+ | |||
+ | == Today in pictures == | ||
+ | This part can still be a gallery like it is now. I got no other ideas. Suggestions? | ||
+ | <gallery> | ||
+ | |||
+ | </gallery> | ||
+ | === [[{{PAGENAME}}/image|Featured Image]] === | ||
+ | {{:{{PAGENAME}}/image}} | ||
+ | |||
+ | === [[{{PAGENAME}}/video|Featured Video]] === | ||
+ | {{:{{PAGENAME}}/video}} | ||
+ | |||
+ | {{DEFAULTSORT:{{{3}}}}} | ||
+ | [[category:{{{4}}}| ]] | ||
− | + | === How it will work === | |
+ | Simple, really. Just paste in the code- | ||
+ | <pre> | ||
+ | {{day|PreviousDate|NextDate|TheMonth|DefaultSortKey}} | ||
+ | </pre> | ||
+ | And everything else gets populated from <date>/whatever. Simple and done. Easy peasey. Any changes that need to be made can be done by clicking on the H2 and going to the page needed to edit. We can even wrap the DEFAULTSORT in an IF, if needed. Like- | ||
+ | <pre> | ||
+ | {{#if:{{{3|}}} | | ||
+ | {{DEFAULTSORT:{{{3}}}}} | ||
+ | }} | ||
+ | </pre> | ||
+ | -or something like it. Or how about- | ||
+ | {| class="wikitable" align="center" width="840" cellpadding="10" | ||
+ | ! [[{{PAGENAME}}/image|Featured Image]] !! [[{{PAGENAME}}/video|Featured Video]] | ||
+ | |- align="center" | ||
+ | | {{:{{PAGENAME}}/image}} || {{:{{PAGENAME}}/video}} | ||
|} | |} | ||
+ | -for that stuff? It aint that hard. --[[User:Admin|ComAdmin]] ([[User talk:Admin|talk]]) 17:03, 21 April 2013 (CDT) |
Latest revision as of 16:03, 21 April 2013
Contents |
[edit] Days page template
Its simple, really. Just like this - /* make the table to scroll days */
[[{{{1}}}|<< Previous day]] | [[{{{2}}}|Next day >>]] |
/* call the other pages */
[edit] Featured Article
[edit] On this day
[edit] Today in pictures
This part can still be a gallery like it is now. I got no other ideas. Suggestions?
[edit] Featured Image
[edit] Featured Video
[[category:{{{4}}}| ]]
[edit] How it will work
Simple, really. Just paste in the code-
{{day|PreviousDate|NextDate|TheMonth|DefaultSortKey}}
And everything else gets populated from <date>/whatever. Simple and done. Easy peasey. Any changes that need to be made can be done by clicking on the H2 and going to the page needed to edit. We can even wrap the DEFAULTSORT in an IF, if needed. Like-
{{#if:{{{3|}}} | {{DEFAULTSORT:{{{3}}}}} }}
-or something like it. Or how about-
Featured Image | Featured Video |
---|---|
Admin/sandbox/image | Admin/sandbox/video |
-for that stuff? It aint that hard. --ComAdmin (talk) 17:03, 21 April 2013 (CDT)