Skip to content

Commit

Permalink
fix missing pages in import.xml; bump to 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontalvo3 committed Dec 9, 2014
1 parent b89261a commit 2e7a349
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ImportFiles/README.md
Expand Up @@ -13,6 +13,8 @@ Template:Meeting Minutes Block
Template:Meeting Minutes Block info for table row
Template:Meeting Minutes Block info for table row highlighted
Template:Meeting references row
Template:File link
Template:Meeting Minutes/Files
Form:Meeting
Form:Meeting Minutes
Category:Meeting
Expand Down
87 changes: 87 additions & 0 deletions ImportFiles/import.xml
Expand Up @@ -532,6 +532,93 @@ Edit the page to see the template text.
<format>text/x-wiki</format>
</revision>
</page>
<page>
<title>Template:File link</title>
<ns>10</ns>
<id>40</id>
<revision>
<id>57</id>
<parentid>56</parentid>
<timestamp>2014-12-09T18:24:23Z</timestamp>
<contributor>
<username>Ejmontal</username>
<id>1</id>
</contributor>
<text xml:space="preserve" bytes="2636">&lt;noinclude&gt;'''Template:File link''' is an alternate method of linking to files in this wiki. It allows all file linking, both to local wiki files and external files, to be performed with one method. See '''[[Help:Linking to files]]''' for a tutorial.

== Local Files ==
For local files use the format below. Note that the &quot;alt&quot; parameter is optional.
&lt;pre&gt;
{{File link | file=File:International Space Station.pdf | alt=ISS Presentation }} (note, this file has to exist for it to display properly)
&lt;/pre&gt;

The above wikitext displays as {{File link | file=File:International Space Station.pdf | alt=ISS Presentation }}. Note the &quot;file info&quot; link. There has been confusion with some wiki users who click on file links which bring them to another wiki page instead of directly to the file. Using this method, the major link will bring them directly to the file, whereas the &quot;file info&quot; link will bring them to the page where they can see the file upload history and upload new versions of the file.

If the local file does not exist, the output will look like {{File link | file=File:My Fictitious File.doc | alt=Alt name won't show }}

== External Files ==
For external files use the format below. Make sure to include &lt;nowiki&gt;http://&lt;/nowiki&gt; or &lt;nowiki&gt;https://&lt;/nowiki&gt; at the beginning of the URL. Again the &quot;alt&quot; parameter is optional, but it will look ugly without it in this case.
&lt;pre&gt;
{{File link | file=http://example.com/somefile.pdf | alt=My File }}
&lt;/pre&gt;

The above wikitext displays as {{File link | file=http://example.com/somefile.pdf | alt=My File }}. Note that there is no &quot;file info&quot; link, since the EVA Wiki has no such info for external files.

&lt;/noinclude&gt;&lt;includeonly&gt;&lt;!--

#
# DETERMINES if the filename is a local file or an external file
# #pos returns 0 if &quot;File:&quot; is found at the beginning of the string
# returns nothing if &quot;File:&quot; is not found in the string, or a number other than zero if found later in the string
#
--&gt;{{#ifeq: 0
| {{#pos:{{{file}}}|File:}} | &lt;!--


#
# if filename starts with &quot;File:&quot;
#
--&gt;&lt;span style=&quot;white-space:nowrap;&quot;&gt;{{#ifexist:{{{file}}}&lt;!--

--&gt;|[[Media:{{#replace:{{{file}}}|File:}}|{{#if: {{{alt|}}} | {{{alt}}} | {{#replace:{{{file}}}|File:}} }}]]&lt;sup&gt; &lt;nowiki&gt;[&lt;/nowiki&gt;[[:{{{file}}}|file info]]&lt;nowiki&gt;]&lt;/nowiki&gt;&lt;/sup&gt;|&lt;!--

--&gt;[[{{{file}}}]]}}&lt;/span&gt;|&lt;!--


#
# If does not start with &quot;File:&quot;
# NOTE: the #if statement trims whitespace off of the URL...stupid hack
#
--&gt;[{{#if:{{{file|}}}|{{{file|}}} }} {{{alt|}}}]&lt;!--


#
# Close out ifeq function
#
--&gt;}}&lt;/includeonly&gt;</text>
<sha1>s1or1ey290ounjnmxqjz0b0q2kmne94</sha1>
<model>wikitext</model>
<format>text/x-wiki</format>
</revision>
</page>
<page>
<title>Template:Meeting Minutes/Files</title>
<ns>10</ns>
<id>39</id>
<revision>
<id>55</id>
<timestamp>2014-12-09T17:31:40Z</timestamp>
<contributor>
<username>Ejmontal</username>
<id>1</id>
</contributor>
<comment>Created page with &quot;* {{File link | file={{{File or URL|}}} | alt={{{Alternate name|}}} }}&lt;br /&gt;&quot;</comment>
<text xml:space="preserve" bytes="76">* {{File link | file={{{File or URL|}}} | alt={{{Alternate name|}}} }}&lt;br /&gt;</text>
<sha1>qldu4s71mefr0flysuf24yw648ikl8t</sha1>
<model>wikitext</model>
<format>text/x-wiki</format>
</revision>
</page>
<page>
<title>Form:Meeting</title>
<ns>106</ns>
Expand Down
2 changes: 1 addition & 1 deletion SemanticMeetingMinutes.php
Expand Up @@ -25,7 +25,7 @@
'url' => 'http://github.com/enterprisemediawiki/SemanticMeetingMinutes',
'author' => 'James Montalvo',
'descriptionmsg' => 'meetingminutes-desc',
'version' => '0.2.0'
'version' => '0.2.1'
);

$GLOBALS['wgMessagesDirs']['MeetingMinutes'] = __DIR__ . '/i18n';
Expand Down

0 comments on commit 2e7a349

Please sign in to comment.