Difference between revisions of "User:Renegade"
From LGPedia
(→Generic way to safeguard an expression: Improved version) |
(wth.) |
||
(28 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
==Linklist== | ==Linklist== | ||
+ | <div class="toclimit-2" style="float: right;">__TOC__</div> | ||
Just for my personal convenience. | Just for my personal convenience. | ||
*[[Special:Allpages|All Pages]] | *[[Special:Allpages|All Pages]] | ||
Line 14: | Line 15: | ||
*[[LGPedia:Color Palette|Color Palette]] | *[[LGPedia:Color Palette|Color Palette]] | ||
− | == | + | ==Portal New Vid Template== |
− | + | <pre>{{PortalVideoNews | |
− | + | |name = | |
+ | |number = | ||
+ | |image = | ||
+ | |description = | ||
+ | |blogger = | ||
+ | |url = {{lg15|}} | ||
+ | |forumurl = | ||
+ | |new = yes | ||
+ | }}</pre> | ||
+ | <div class="NavFrame" style="text-align: left; font-size: 100%; border: none; padding: 0px;"> | ||
+ | <div class="NavHead" style="background-color: transparent; padding-top: 0em; margin-bottom: 0.8em;"> | ||
==Episode Page Framework== | ==Episode Page Framework== | ||
+ | </div> | ||
+ | <div class="NavContent" style="display:none;"> | ||
<pre>{{Blog | <pre>{{Blog | ||
| name = {{PAGENAME}} | | name = {{PAGENAME}} | ||
Line 25: | Line 38: | ||
| caption = | | caption = | ||
| blogger = | | blogger = | ||
− | | date = {{subst: | + | | date = {{subst:CURRENTYEAR}}{{subst:CURRENTMONTH}}{{subst:CURRENTDAY}} |
| url = {{lg15|}} | | url = {{lg15|}} | ||
| forumid = | | forumid = | ||
Line 34: | Line 47: | ||
<!-- Production Credits leave blank after "=" if data is not available --> | <!-- Production Credits leave blank after "=" if data is not available --> | ||
− | |||
− | |||
| execprod = | | execprod = | ||
| coexecprod = | | coexecprod = | ||
Line 58: | Line 69: | ||
| music supervisor = | | music supervisor = | ||
− | | song = | + | | song = |
− | | cast = {{VidChar|}} | + | | cast = {{VidChar|}} |
− | | Previous = | + | | Previous = |
− | | Next = | + | | Next = |
− | | PreviousB = | + | | PreviousB = |
− | | NextB = | + | | NextB = |
− | | PreviousC = | + | |
− | | NextC = | + | | PreviousC = |
+ | | NextC = | ||
}} | }} | ||
− | |||
==Transcript== | ==Transcript== | ||
Line 76: | Line 87: | ||
==Notes== | ==Notes== | ||
</pre> | </pre> | ||
+ | </div> | ||
+ | </div> | ||
− | == | + | <div class="NavFrame" style="text-align: left; font-size: 100%; border: none; padding: 0px;"> |
− | < | + | <div class="NavHead" style="background-color: transparent; padding-top: 0em; margin-bottom: 0.8em;"> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
==Snippets== | ==Snippets== | ||
− | + | </div> | |
− | + | <div class="NavContent" style="display:none;"> | |
− | + | ||
− | + | ||
− | : | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
===Generic way to safeguard an expression=== | ===Generic way to safeguard an expression=== | ||
+ | :'''''Note:''' I'm leaving this standing for completeness' sake, but recent versions of ParserFunction include <code><nowiki>{{#iferror:expression|error|success}}</nowiki></code>, or, shorter, <code><nowiki>{{#iferror:expression}}</nowiki></code> - the latter of which returns the expression only if it is valid. Once LGPedia's ParserFunctions are updated, this subsection is obsolete.'' | ||
This code can be used to protect parameters in mathematical templates, to make sure the input is either numerical or a valid expression. | This code can be used to protect parameters in mathematical templates, to make sure the input is either numerical or a valid expression. | ||
<pre>{{#ifeq: {{#ifexpr: {{{1}}} |true|true}} | true | Is expression | Is not an expression}}</pre> | <pre>{{#ifeq: {{#ifexpr: {{{1}}} |true|true}} | true | Is expression | Is not an expression}}</pre> | ||
Line 131: | Line 125: | ||
*'''Logical XOR:''' <code><nowiki>{{ #ifexpr: {{ #ifeq: {{{1}}} | yes | 1 | 0 }} != {{ #ifeq: {{{2}}} | yes | 1 | 0 }} | TRUE | FALSE }}</nowiki></code> | *'''Logical XOR:''' <code><nowiki>{{ #ifexpr: {{ #ifeq: {{{1}}} | yes | 1 | 0 }} != {{ #ifeq: {{{2}}} | yes | 1 | 0 }} | TRUE | FALSE }}</nowiki></code> | ||
:Returns TRUE if either <nowiki>{{{1}}}</nowiki> or <nowiki>{{{2}}}</nowiki> but not both are set to "yes". | :Returns TRUE if either <nowiki>{{{1}}}</nowiki> or <nowiki>{{{2}}}</nowiki> but not both are set to "yes". | ||
+ | </div> | ||
+ | </div> | ||
+ | ==Fonts== | ||
+ | *Lonelygirl15 (old): [http://www.myfonts.com/fonts/fontbureau/giza/threefive/ Giza ThreeFive] | ||
+ | *Lonelygirl15 (new): [http://www.myfonts.com/fonts/linotype/myriad/ Myriad Pro Bold Italic] | ||
+ | *Hymn Of One: [http://www.linotype.com/57322/bickhamscript-family.html Bickham Script Semibold] | ||
+ | *KateModern: [http://www.myfonts.com/fonts/adobe/orator/slanted-2/ Orator Slanted] | ||
+ | |||
+ | ==Stuff broken on the main page== | ||
+ | *[http://www.lg15.com/lonelygirl15/?p=83 Video link of Daniel, Be Careful...] ([[Daniel, Be Careful...|Episode page]]) | ||
+ | *[http://www.lg15.com/lonelygirl15/?p=176 Video link of Disclosure: Cassie. We Are "They"] ([[Disclosure: Cassie. We Are "They"|Episode page]]) | ||
+ | *"Permanent link to this video" ''always'' links to [http://www.lg15.com/lonelygirl15/?p=307 307] ([[lonelygirl15 Season 1 Recap]]) | ||
+ | |||
+ | ==List of redesign pages to delete from my userspace== | ||
+ | *[[User:Renegade/Portal:Lonelygirl15]] | ||
+ | *[[User:Renegade/Portal:Lonelygirl15/Character Row/CharBox]] | ||
+ | *[[User:Renegade/Portal:Lonelygirl15/Character Row]] | ||
+ | *[[User:Renegade/Portal:Lonelygirl15/Content]] | ||
+ | *[[User:Renegade/Portal:Lonelygirl15/News]] | ||
+ | *[[User:Renegade/Portal:Lonelygirl15/News/Template]] | ||
+ | [[Category:Hardwork Medal recipients|{{PAGENAME}}]] | ||
+ | [[Category:Spam Patrol|{{PAGENAME}}]] | ||
+ | __NOEDITSECTION__ | ||
<div style="position: absolute; right: 10px;">[[Special:Allmessages|<span style="color: #DDDDDD; font-size: 150%; font-family: serif;">π</span>]] [[MediaWiki:Monobook.css|<span style="color: #DDDDDD;">θέλημα</span>]]</div> | <div style="position: absolute; right: 10px;">[[Special:Allmessages|<span style="color: #DDDDDD; font-size: 150%; font-family: serif;">π</span>]] [[MediaWiki:Monobook.css|<span style="color: #DDDDDD;">θέλημα</span>]]</div> |
Latest revision as of 11:13, 24 April 2008
Linklist
Contents
Just for my personal convenience.
Portal New Vid Template
{{PortalVideoNews |name = |number = |image = |description = |blogger = |url = {{lg15|}} |forumurl = |new = yes }}
Episode Page Framework
Snippets
Fonts
- Lonelygirl15 (old): Giza ThreeFive
- Lonelygirl15 (new): Myriad Pro Bold Italic
- Hymn Of One: Bickham Script Semibold
- KateModern: Orator Slanted
Stuff broken on the main page
- Video link of Daniel, Be Careful... (Episode page)
- Video link of Disclosure: Cassie. We Are "They" (Episode page)
- "Permanent link to this video" always links to 307 (lonelygirl15 Season 1 Recap)