This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on index | |
put fedwiki_GetDroppedUrl ($_POST_RAW) into droppedURL | |
if droppedURL is empty then | |
fedwiki_ExitAndReturnError "Nothing dropped", "Error" | |
end if | |
set the itemdelimiter to "?" | |
switch | |
case matchtext (droppedURL, "^https://tools.wmflabs.org/geohack/geohack.php\?pagename=(.+)¶ms=(.+)", pageName, geoInfo) | |
-- put "https://tools.wmflabs.org/geohack/geohack.php?pagename=Bilbao¶ms=43_15_25_N_2_55_25_W_region:ES_type:city" into someURL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?lc | |
/* = DESCRIPTION = | |
-- | |
The mediawiki.lc controller can be found at: mediawiki.lc | |
Below we declare the global variables gControllerHandlers AND gData | |
And put the public method names that we wish to expose into gControllerHandlers | |
-- | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?lc | |
/* = DESCRIPTION = | |
-- | |
The bbc.lc controller can be found at: bbc.lc | |
Below we declare the global variables gControllerHandlers AND gData | |
And put the public method names that we wish to expose into gControllerHandlers | |
-- | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fedwiki_ItemChecked pageArray, checkboxTitle | |
put pageArray ["story"] into storyArray | |
put item 2 of the extents of storyArray into maxItemNum | |
repeat with itemNum = 1 to maxItemNum | |
put storyArray [itemNum] into itemArray | |
if itemArray ["type"] is not "markdown" then next repeat | |
put itemArray ["text"] into itemText | |
switch | |
case itemText contains ("- [x]" && checkboxTitle) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?lc | |
/* = DESCRIPTION = | |
-- | |
The onetab.lc controller can be found at: onetab.lc | |
Here is some test help | |
Below we declare the global variables gControllerHandlers AND gData | |
And put the public method names that we wish to expose into gControllerHandlers | |
-- | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?rev | |
# PUT YOUR HANDLER NAMES INTO THE GLOBAL gControllerHandlers AS A COMMA SEPARATED LIST | |
put "index" into gControllerHandlers | |
# THIS COMMAND WILL BE CALLED IF NONE IS SPECIFYED IN THE URI | |
command index | |
-- put "https://audioboom.com/boos/3844212-fedwiki-authoring-tool" into droppedURL | |
-- put "https://audioboom.com/boos/3836093-raspberrypad" into droppedURL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?lc | |
/* = DESCRIPTION = | |
-- | |
The imagine.lc controller can be found at: imagine.lc | |
Here is some test help | |
Below we declare the global variables gControllerHandlers AND gData | |
And put the public method names that we wish to expose into gControllerHandlers | |
-- | |
*/ | |